package com.dzl.userwx.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.userwx.pojo.WelfareUserPurchasesNum;
import com.dzl.userwx.pojo.vo.WelfareUserPurchasesNumVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户虚拟商品购买次数信息表(welfare_user_purchases_num)数据库访问层
 * @author liuguanjun
 * @date 2021-11-13 09:55:17
 */
@Repository
public interface WelfareUserPurchasesNumMapper extends BaseMapper<WelfareUserPurchasesNum> {

    /**
     * 根据用户id查询用户商品购买次数
     * @param userIds 用户id
     * @author liuguanjun
     * @date 2021/11/13 10:24
     */
    List<WelfareUserPurchasesNumVo> selectGoodsPurchasesNumByUserIds(@Param("userIds") List<Integer> userIds);

}
